package com.baizhi.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baizhi.entity.Address;

public interface AddressDao {
	//根据地址ID查询地址  测试
	public Address selectAddressById(@Param("addressid") Integer addressid);
	//根据用户ID查找地址
	public List<Address> selectAddressesByUserId(@Param("userId") Integer userId);
	//添加地址
	public int insertAddress(@Param("a") Address address);
	//查询新添加的地址ID
	public int selectAddressId();
}
